package org.example.service;

import org.apache.catalina.User;
import org.example.dao.UserMapper;
import org.example.entity.UserEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<UserEntity> findAllUsers() {
        return userMapper.findAllUsers();
    }

    @Override
    public UserEntity queryBySchoolid(String schoolid) {
        return userMapper.queryBySchoolid(schoolid);
    }

    @Override
    public int insertUser(UserEntity userEntity) {
        return userMapper.insertUser(userEntity);
    }


}
